
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>会赚钱的数码串 - 神码磁力搜索</title>
	<meta name="HandheldFriendly" content="True" />
	<meta name="MobileOptimized" content="320" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="keywords" content="BT资源搜索,迅雷搜索,BT搜索,磁力搜索,磁力链接">
	<meta name="description" content="神码磁力搜索(www.codeit.cn)">
	<link href="http://libs.useso.com/js/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<link href="http://libs.useso.com/js/bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet" media="screen">
	<link href="/Public/css/shenma.css?bootstrap=0.10" rel="stylesheet" media="screen">

	<link rel="shortcut icon" type="image/x-icon" href="/Public/favicon.ico"/>
	<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
	<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon.png" />
	<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon.png" />

</head>
<body>
	<form class="x-sform" method="get" action="/">
		<nav class="navbar navbar-default " role="navigation">
			<div class="container container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">搜索神码</a>
				</div>
				<div class="collapse navbar-collapse">
					<ul class="nav navbar-nav">
						<li class="active"><a href="/">神码摇钱树</a></li>
						<li><a href="/hot/">热门</a></li>
						<li><a href="/best/">精选</a></li>
						<li><a href="/howto/">教程</a></li>
					</ul>

				</div>
			</div>
		</nav>
	</form>

	<form class="x-sform" method="post">
		<div class="container">
			<div class="div-search-box col-lg-offset-2 col-lg-8">
				<div class="big-text money">累计分成：<span id='money'>$180,276.11</span></div>
				<div class="logo">
					<img src="/Public/images/shenma.gif"/>
				</div>
				<div>
					<div class="input-group">
						<span class="input-group-addon big-text">http://</span>
						<input placeholder="创建你的摇钱树！" type="text" class="form-control big-text big" name="domain" id="domain" type="required" required-message="密码不能为空！" />
						<span class="input-group-addon big-text">CodEiT.cn</span>
						<span class="input-group-btn">
							<button class="btn btn-default big-text big" id="register"><span class="glyphicon glyphicon-search"></span>立即注册</button>
						</span>
					</div>
				</div>
			</div>
		</div>
	</form>

	<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<div class="copyright">&copy; 2014 codeit.cn 神码搜索，专注于资源网络</div>
			</div>
		</div>
	</nav>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="http://libs.useso.com/js/jquery/1.11.0/jquery.min.js"></script>
<script src="__PUBLIC__/js/jquery.validate.min.js"></script>
<script src="http://libs.useso.com/js/jquery.lazyload/1.9.0/jquery.lazyload.min.js"></script>
<script src="http://libs.useso.com/js/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<style>
.big-text {
	font-family: "Microsoft YaHei", "MS Serif", "New York", serif;
	font-weight: 900;
	font-size: x-large;
	color: #fe8432;
}
.div-search-box .money {
	text-align: center;
	position: relative;
	top: 100px;
}
</style>
<script>
$("#domain").validate();
$("#register").click(function(){
	if ($("#domain").val().length<5) { alert('域名长度必须大于5个字符！');return(0); };
	alert("域名已占用");
});

var money = 18300;
setInterval(update, 3000);

function update(){
	money = money + Math.random()*1;
	$('#money').html(formatCurrency(money.toFixed(2))).fadeIn('slow');
	//setTimeout(update(), 5000);
	console.log(money);
}
function formatCurrency(num) {
	var sign="";
	if (isNaN(num)) { num = 0; }
	if(num<0){ sign="-"; }
	var strNum=num+"";
	var arr1 = strNum.split(".");
	var hasPoint=false;//是否有小数部分
	var piontPart="";//小数部分
	var intPart=strNum;//整数部分

	if(arr1.length>=2) { 
		hasPoint=true;
		piontPart= arr1[1]; 
		intPart=arr1[0];	   
	}
		
	var res='';//保存添加逗号的部分
	var intPartlength=intPart.length;//整数部分长度
	var maxcount=Math.ceil(intPartlength/3);//整数部分需要添加几个逗号
	for (var i = 1; i <=maxcount;i++) { //每三位添加一个逗号
		var startIndex=intPartlength-i*3;//开始位置
		if(startIndex<0) startIndex=0;//开始位置小于0时修正为0
		var endIndex=intPartlength-i*3+3;//结束位置
		var part=intPart.substring(startIndex,endIndex)+",";	
		res=part+res;
	}

	res=res.substr(0,res.length-1);//去掉最后一个逗号
	if(hasPoint) {
		return "￥"+sign+res+"."+piontPart;
	} else {
		return "￥"+sign+res;
	}
}
</script>
<!--script src="/Public/js/jquery.min.js?1.11.0"></script>
<script src="/Public/bootstrap/js/bootstrap.min.js?3.20"></script-->
</body>
</html>